package com.spi.controller;

import com.spi.model.User;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/user")
@RestController
public class UserController {

    @RequestMapping("/adduser")
    //@CrossOrigin
    public void addUser(@RequestBody User user) {
        System.out.println(user);
        System.out.println("添加用户");
    }
}
